package com.rboat.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;

/**
 * 试卷章节试题对象 exam_test_paper_questions
 * 
 * @author rboat
 * @date 2019-09-02
 */
public class ExamTestPaperQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 试卷ID */
    @Excel(name = "试卷ID")
    private String testPaperId;

    /** 试卷章节ID */
    @Excel(name = "试卷章节ID")
    private String testPaperChapterId;

    /** 试题ID */
    @Excel(name = "试题ID")
    private String testQuestionsId;

    /** 试题的分值（如果不填则应该取试题库中的分值） */
    @Excel(name = "试题的分值", readConverterExp = "如=果不填则应该取试题库中的分值")
    private Long score;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态（0正常 1:删除） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=:删除")
    private String isDel;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTestPaperId(String testPaperId) 
    {
        this.testPaperId = testPaperId;
    }

    public String getTestPaperId() 
    {
        return testPaperId;
    }
    public void setTestPaperChapterId(String testPaperChapterId) 
    {
        this.testPaperChapterId = testPaperChapterId;
    }

    public String getTestPaperChapterId() 
    {
        return testPaperChapterId;
    }
    public void setTestQuestionsId(String testQuestionsId) 
    {
        this.testQuestionsId = testQuestionsId;
    }

    public String getTestQuestionsId() 
    {
        return testQuestionsId;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testPaperId", getTestPaperId())
            .append("testPaperChapterId", getTestPaperChapterId())
            .append("testQuestionsId", getTestQuestionsId())
            .append("score", getScore())
            .append("sort", getSort())
            .append("isDel", getIsDel())
            .toString();
    }
}
